package com.ktjy.sample.note12and17;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface FruirtColor {
    /**
     * 颜色枚举
     */
    public enum Color {
        BLUE,RED,GREEN
    }
    /**
     * 颜色属性
     */
    Color fruitColor() default Color.GREEN;
}
